//
//  LOLHeroTableViewCell.m
//  LOLXXbox
//
//  Created by mac on 16/3/1.
//  Copyright © 2016年 Grasstrio. All rights reserved.
//

#import "LOLHeroTableViewCell.h"

#define CONTENTWIDTH  self.contentView.frame.size.width
#define CONTENTHEIGHT  self.contentView.frame.size.height
@implementation LOLHeroTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if(self=[super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self createView];
        
        
    }
    return self;
    
}
-(void)createView
{
    
    self.dubNameLabel=[[UILabel alloc]init];
    [self.contentView addSubview:self.dubNameLabel];

    self.downloadImageView=[[UIImageView alloc]init];
    self.downloadImageView.image=[UIImage imageNamed:@"download"];
    [self.contentView addSubview:self.downloadImageView];
 
    
    
    
    
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.downloadImageView.frame=CGRectMake(CONTENTWIDTH-CONTENTHEIGHT, 5, CONTENTHEIGHT-10,CONTENTHEIGHT-10);
    self.dubNameLabel.frame=CGRectMake(10, 0, CONTENTWIDTH-CONTENTHEIGHT-20-10, CONTENTHEIGHT);
    
}


@end
